<script>
  var request = new XMLHttpRequest();
  request.open("GET", "/auth-basic/xhr", false);
  request.send("");
  document.title = "status=" + request.status;
</script>
